package com.lin.service.customer;

import com.lin.common.error.CustomRuntimeException;
import com.lin.controller.req.AgreeCustomerReqMsg;
import com.lin.controller.res.CustomerPageResMsg;

import java.util.Map;

public interface CustomerRelsService {
    /**
     *
     * @param customerId
     * @param customerRelId
     * @return 1:新增待通过，0：已有关系；其他：添加错误
     * @throws CustomRuntimeException
     */
    Integer addrel(Long customerId,Long customerRelId) throws CustomRuntimeException;

    Integer agree(AgreeCustomerReqMsg reqMsg) throws CustomRuntimeException;

    CustomerPageResMsg listrels(Map<String,Object> map);
}
